#ifndef THREADDISPLAY_H
#define THREADDISPLAY_H

#include <SFML/Graphics.hpp>
#include <iostream>

#include "util/Debug.hpp"
#include "util/Text.h"

#include "GameEngine/DefaultValue.hpp"
#include "display/Displayable.hpp"

class ThreadDisplay : public sf::Thread
{
public:
    ThreadDisplay();
    virtual~ThreadDisplay();

    void setDisplayable(Displayable*);
protected:
private:
    sf::RenderWindow *	m_app;
    Displayable *		m_displayable;
    Displayable *		m_NewDisplayable;

    void DisplayFramerate();
    void ChangeDisplayable();

    virtual void Run();
};

#endif // THREADDISPLAY_H
